package org.jeecg.modules.bigdatashow.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.bigdatashow.entity.Line;

import java.util.List;

/**
 * @Description: 生产线
 * @Author: jeecg-boot
 * @Date:   2022-04-05
 * @Version: V1.0
 */
@Mapper
public interface LineMapper extends BaseMapper<Line> {

    @Select("select id from line")
    List<String> findLineId();

    @Select("SELECT id,name,level,begin_time AS beginTime,director,notice FROM line")
    List<Line> List();

    @Select("select * from line where id= #{id}")
    Line getById(String id);
}
